﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CinemaSystem
{
    public partial class xwlb : Form
    {
        public static int i;
        public xwlb()
        {
            InitializeComponent();
        }
        string sqlstr;
        private void xwlb_Load(object sender, EventArgs e)
        {
            DataTable dt = new DataTable();
          sqlstr = string.Format("select * from Journalism");
            dt = DBHelper.GetDataTable(sqlstr);
            
            dataGridView1.AutoGenerateColumns = false;
            dataGridView1.DataSource = dt;
           
        }

        private void dataGridView1_RowEnter(object sender, DataGridViewCellEventArgs e)
        {
            i = e.RowIndex;
        }
        
        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {






            xwxq xwxq = new xwxq();
            xwxq.Show();
            this.Hide();

        }
    }
}
